// 竞赛获奖编辑页面配置
export const competitionConfig = {
  title: "竞赛信息",
  icon: "competition",
  fields: [
    {
      key: 'projectName',
      label: '项目名称',
      required: true,
      type: 'text',
      placeholder: '请输入项目名称'
    },
    {
      key: 'projectId',
      label: 'ID',
      required: true,
      type: 'text',
      placeholder: '请输入ID'
    },
    {
      key: 'competitionName',
      label: '竞赛名称',
      required: true,
      type: 'text',
      placeholder: '请输入竞赛名称'
    },
    {
      key: 'competitionLevel',
      label: '竞赛级别',
      required: true,
      type: 'select',
      placeholder: '请选择级别',
      options: [
        { value: 'national', label: '国家级' },
        { value: 'provincial', label: '省级' },
        { value: 'university', label: '校级' },
        { value: 'other', label: '其他' }
      ]
    },
    {
      key: 'awardRank',
      label: '奖项',
      required: true,
      type: 'select',
      placeholder: '请选择奖项',
      options: [
        { value: 'first', label: '一等奖' },
        { value: 'second', label: '二等奖' },
        { value: 'third', label: '三等奖' },
        { value: 'excellent', label: '优秀奖' }
      ]
    },
    {
      key: 'competitionHost',
      label: '主办方',
      required: true,
      type: 'text',
      placeholder: '请输入主办方'
    },
    {
      key: 'competitionGen',
      label: '届数',
      required: true,
      type: 'select',
      placeholder: '请选择届数'
    },
    {
      key: 'competitionMember',
      label: '参赛人员',
      required: true,
      type: 'array',
      placeholder: '请输入参赛人员'
    },
    {
      key: 'character',
      label: '个人角色',
      required: true,
      type: 'select',
      placeholder: '请选择个人角色'
    },
    {
      key: 'holdYear',
      label: '举办年份',
      required: true,
      type: 'date',
      placeholder: '请选择举办年份'
    },
    {
      key: 'awardYear',
      label: '获奖年份',
      required: true,
      type: 'date',
      placeholder: '请选择获奖年份'
    },
    {
      key: 'awardIns',
      label: '授予单位',
      required: true,
      type: 'text',
      placeholder: '请输入授予单位'
    }
  ],
  uploadAreas: [
    {
      key: 'certificate',
      label: '证书',
      required: true,
      accept: '.pdf,.jpg,.jpeg,.png',
      multiple: true  // 支持多文件上传
    },
    {
      key: 'pictures',
      label: '比赛图片',
      required: true,
      accept: '.png,.jpg,.jpeg',
      multiple: true  // 支持多文件上传
    }
  ]
};
